home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_c
/
cuj0696.zip
/
DWYER.ZIP
/
SPECTRAL.TST
/
XMATPRT.CX
< prev
next >
Wrap
Text File
|
1996-02-29
|
884b
|
31 lines
/* ============ */
/* xmatprt.cx */
/* ============ */
#include <stdio.h>
#include <xtendefs.h>
/* ==================================================================== */
/* XmatPrt - prints i x i matrix a on Unit with title for Spectral Test */
/* ==================================================================== */
void
XmatPrt(USHORT *a, short i, short n, FILE * Unit, char *title)
{
short k, m;
/* -------------------------------------------------- */
/* Prints an i x i matrix embedded in an n x n matrix */
/* -------------------------------------------------- */
fprintf(Unit, "%s\n", title);
for (k = 1; k <= i; ++k)
{
fprintf(Unit, " Row %d:\n", k);
for (m = 1; m <= i; ++m)
{
char Label[16];
sprintf(Label, "\t(%2d) ", m);
XFPRINTF(Unit, Label, a + XML(k, m, n), NDEC);
}
}
}